package com.hsq.db137.demos.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.stereotype.Component;

import java.util.ArrayList;
import java.util.List;

/**
 * @Author: hsq加油
 * @CreateTime: 2024/12/24-11:48
 * @Description: TODO
 * @Version: 1.0
 */
@Component
@Data
@AllArgsConstructor
@NoArgsConstructor
@TableName(value = "userrole")
public class Userrole {
    @TableId(value = "id", type = IdType.INPUT)
    private Integer id;

    @TableField(value = "userId")
    private Integer userid;

    @TableField(value = "roleId")
    private Integer roleid;

    @TableField(exist = false)
    List<Integer> roleidList = new ArrayList<>();

}